Skip to content

doc: small fixes - #148

Open
jll63 wants to merge 4 commits into
boostorg:developfrom
jll63:doc/misc
Open

jll63 wants to merge 4 commits into
boostorg:developfrom
jll63:doc/misc

Conversation

@jll63

@jll63 jll63 commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

(Written by Claude Code, on behalf of @jll63.)

Three small documentation fixes.

  • VirtualTraits::vptr: simplify the description, and point to the std::any specialization as the example.
  • How the vptr is acquired: a new page (vptr_acquisition.adoc, deliberately not in the nav) states the order once: virtual_ptr, the boost_openmethod_vptr ADL function, virtual_traits::vptr, then the vptr policy's dynamic_vptr. It is linked from boost_openmethod_vptr, VirtualTraits::vptr, BOOST_OPENMETHOD (which no longer carries its own copy of the list) and the pages that customize the vptr. The comment of bad_call_type is corrected: it identifies a polymorphic object by its dynamic type before trying the ADL function and virtual_traits, unlike dispatch.
  • Page titles: every page read "Untitled :: Boost.OpenMethod" because none had a level-0 heading. Add one to each, named as in the nav, and shift the section headings up so Asciidoctor reports no out-of-sequence sections. Each page now shows an <h1> above its content.

Comments and docs only. The docs build (doc/build_antora.sh) is clean, with no Asciidoctor warnings.

🤖 Generated with Claude Code

Replace the long explanation of when to implement vptr with a one-line
statement and point to the std::any specialization as the example.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jll63 jll63 changed the title doc: vptr acquisition page, VirtualTraits::vptr wording, page titles doc: small fixes Nov 22, 2026
@cppalliance-bot

cppalliance-bot commented Nov 22, 2026 •

Copy link
Copy Markdown

An automated preview of the documentation is available at https://148.openmethod.prtest3.cppalliance.org/libs/openmethod/doc/html/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-11-22 16:50:04 UTC

State the order once - virtual_ptr, boost_openmethod_vptr, virtual_traits::vptr,
the vptr policy's dynamic_vptr - and link to it from boost_openmethod_vptr,
VirtualTraits::vptr and the pages that customize the vptr. The page is not in
the nav.

BOOST_OPENMETHOD drops its own copy of the list, and links to method in See
Also. Correct the comment of bad_call_type, which does not follow the same
order as dispatch.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jll63
jll63 force-pushed the doc/misc branch 2 times, most recently from 0e2e059 to 591fea6 Compare November 22, 2026 16:26
Antora takes the browser title from a level-0 heading, which the pages
lacked: all of them read "Untitled :: Boost.OpenMethod". Add one to each,
named as in the nav. Where the page opened with a section of the same name,
that section becomes the title. Shift the section headings up to follow, so
Asciidoctor no longer reports them out of sequence.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The link runs the example against the Boost release CE offers, as the others do.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.57%. Comparing base (b681217) to head (32ed78c).
⚠️ Report is 31 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #148   +/-   ##
========================================
  Coverage    92.56%   92.57%           
========================================
  Files           29       29           
  Lines         2314     2316    +2     
  Branches       699      700    +1     
========================================
+ Hits          2142     2144    +2     
  Misses         111      111           
  Partials        61       61           
Files with missing lines Coverage Δ
include/boost/openmethod/core.hpp 92.18% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ad9522...32ed78c. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants